package com.cea.papyrus.core.preference;

import org.eclipse.jface.preference.FieldEditorPreferencePage;
import org.eclipse.jface.preference.StringFieldEditor;
import org.eclipse.ui.IWorkbench;
import org.eclipse.ui.IWorkbenchPreferencePage;

import com.cea.papyrus.core.PapyrusPlugin;
import com.cea.papyrus.core.utils.Debug;

public class OpaqueLanguagesPreferencePage extends FieldEditorPreferencePage
	implements IWorkbenchPreferencePage {

	/**
	 * The channel.
	 */
	private int channel = 205;

	/**
	 * The Constructor.
	 */
	public OpaqueLanguagesPreferencePage() {
		super(GRID);
		setPreferenceStore(PapyrusPlugin.getDefault().getPreferenceStore());
		setDescription("User Opaque Expressions and Behaviors Languages separated by commas");
	}
	
	/**
	 * Creates the field editors.
	 */
	@Override
	public void createFieldEditors() {
		Debug.debug(this,"createFieldEditor()", channel);
		addField(new StringFieldEditor(OpaqueLanguagesPreferenceConstants.P_LANGUAGES_NAME, "Languages:", getFieldEditorParent()));
	}

	/**
	 * Init.
	 * 
	 * @param workbench the workbench
	 */
	public void init(IWorkbench workbench) {
	}
	
}